steps:
# Add authenticated pip feed
- task: PipAuthenticate@1
  displayName: 'Pip Authenticate'
  inputs:
    artifactFeeds: public/dotnet-public-pypi
    onlyAddExtraIndex: false

- script: $(PythonSetupScript)
  displayName: Enable python venv

# Ensure the Python azure-storage-blob package is installed before doing the upload.
- script: $(PipScript) install --upgrade pip && $(PipScript) install azure.storage.blob==12.5.0 --force-reinstall
  displayName: Upgrade Pip to latest and install azure-storage-blob Python package

- script: $(PythonScript) $(Build.SourcesDirectory)/src/coreclr/scripts/jitrollingbuild.py upload -build_type $(_BuildConfig) -arch $(archType) -host_os $(osGroup) -git_hash $(Build.SourceVersion) --use_latest_jit_change
  displayName: Upload JIT to Azure Storage
  env:
    CLRJIT_AZ_KEY: $(clrjit_key1) # secret key stored as variable in pipeline
